package com.xiaotao.controller;

import com.xiaotao.service.CouponService;
import com.xiaotao.util.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/coupon")
public class CouponController {
    @Resource
    private CouponService couponService;
    @GetMapping
    public ResponseUtil queryAll(){
        return couponService.queryAll();
    }
}
